package com.xinchuang.initializrdemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class InitializrDemoApplication {

    public static void main(String[] args) {
//        SpringApplication.run(InitializrDemoApplication.class, args);
        ConfigurableApplicationContext ioc = SpringApplication.run(InitializrDemoApplication.class, args);
        String[] beanDefinitionNames = ioc.getBeanDefinitionNames();
        for (String beanDefinitionName : beanDefinitionNames) {
            System.out.println(beanDefinitionName);
        }
    }
}
